package com.egg.mall.model.request;

import com.egg.common.core.model.request.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.List;


@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "订单新增/编辑")
public class OrderPostOrPut extends BaseRequest {


    @ApiModelProperty(value = "支付类型", notes = "com.egg.basic.enums.pay.PayTypeEnum")
    private String payType;

    @ApiModelProperty(value = "支付端类型", notes = "com.egg.basic.enums.pay.ClientTypeEnum")
    private String clientType;

    @ApiModelProperty(value = "总金额(分)")
    private Long totalAmount;

    @ApiModelProperty(value = "总数量")
    private Integer totalQuantity;

    @ApiModelProperty(value = "运费金额(分)")
    private Long freightAmount;

    @ApiModelProperty(value = "应付金额(分)")
    private Long payAmount;

    @ApiModelProperty(value = "商品明细")
    private List<Sku> skuList;

    @Data
    @ApiModel(value = "OrderSave.SKU")
    public static class Sku {


        @ApiModelProperty(value = "SKU ID")
        private Long skuId;

        @ApiModelProperty(value = "数量")
        private Integer quantity;


    }


}
